<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org">
<head>
    <title>Hello Thymeleaf</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
</head>
<body>
<p>Welcome to Thymeleaf!</p>
<p th:text="${session.global}"></p>
<p id="cookie"></p>
<script>
    var a = function(){document.getElementById("cookie").innerHTML=document.cookie;};
    setInterval(a,1000);
</script>
</body>
</html>